home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
abstract.swf
/
scripts
/
DefineSprite_419
/
frame_1
/
DoAction.as
Wrap
Text File
|
2013-04-24
|
912b
|
27 lines
sfxButton.onRollOver = musicButton.onRollOver = backButton.onRollOver = function()
{
_root.playSFX("menuRollOver");
this.filters = [new flash.filters.GlowFilter(12303359,1,6,6,2,3,false,false)];
};
sfxButton.onRollOut = sfxButton.onReleaseOutside = backButton.onRollOut = backButton.onReleaseOutside = musicButton.onRollOut = musicButton.onReleaseOutside = function()
{
this.filters = [];
};
sfxButton.onRelease = function()
{
_root.sfxOn = !_root.sfxOn;
_root.toggleSFX(_root.sfxOn);
this.statusString.text = _root.sfxOn != true ? "SFX: OFF" : "SFX: ON";
};
musicButton.onRelease = function()
{
_root.musicOn = !_root.musicOn;
_root.toggleMusic(_root.musicOn);
this.statusString.text = _root.musicOn != true ? "MUSIC: OFF" : "MUSIC: ON";
};
backButton.onRelease = function()
{
_root.optionsScreen._x = -475;
_root.gamePausedScreenCampaign._x = 300;
};